package com.jianyun.jyzs.bean;

import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;

import java.util.List;

/**
 * Created by mlli on 2017/11/5.
 */

public class EngineerTypeResult extends Response{

    /**
     * result : true
     * list : [{"TypeName":"质量检查","TypeCode":0,"AutoId":4,"EnterpriseCode":"YuntechOA"},{"TypeName":"安全检查","TypeCode":1,"AutoId":5,"EnterpriseCode":"YuntechOA"},{"TypeName":"日程检查","TypeCode":2,"AutoId":6,"EnterpriseCode":"YuntechOA"}]
     * totalIndex : 1
     * pageIndex : 1
     * message : ok
     */

    private boolean result;
    private int totalIndex;
    private int pageIndex;
    private String message;
    private List<EngineerType> list;

    public boolean isResult() {
        return result;
    }

    public void setResult(boolean result) {
        this.result = result;
    }

    public int getTotalIndex() {
        return totalIndex;
    }

    public void setTotalIndex(int totalIndex) {
        this.totalIndex = totalIndex;
    }

    public int getPageIndex() {
        return pageIndex;
    }

    public void setPageIndex(int pageIndex) {
        this.pageIndex = pageIndex;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public List<EngineerType> getList() {
        return list;
    }

    public void setList(List<EngineerType> list) {
        this.list = list;
    }

    @DatabaseTable
    public static class EngineerType {
        /**
         * TypeName : 质量检查
         * TypeCode : 0
         * AutoId : 4
         * EnterpriseCode : YuntechOA
         */

        @DatabaseField
        private String TypeName;
        @DatabaseField
        private int TypeCode;
        @DatabaseField(id = true)
        private int AutoId;
        @DatabaseField
        private String EnterpriseCode;
        @DatabaseField
        private int orgcode;

        public int getOrgcode() {
            return orgcode;
        }

        public void setOrgcode(int orgcode) {
            this.orgcode = orgcode;
        }

        public String getTypeName() {
            return TypeName;
        }

        public void setTypeName(String TypeName) {
            this.TypeName = TypeName;
        }

        public int getTypeCode() {
            return TypeCode;
        }

        public void setTypeCode(int TypeCode) {
            this.TypeCode = TypeCode;
        }

        public int getAutoid() {
            return AutoId;
        }

        public void setAutoid(int autoid) {
            this.AutoId = autoid;
        }

        public String getEnterpriseCode() {
            return EnterpriseCode;
        }

        public void setEnterpriseCode(String EnterpriseCode) {
            this.EnterpriseCode = EnterpriseCode;
        }
    }
}
